import request from '@/utils/request'

// 查询供应商结算单详细
export function getSettleSheetList(params) {
  return request({
    url: '/system/SettleSheet/query',
    method: 'get',
    params: {
      startDate: params.startDate,
      endDate: params.endDate,
      supplierId: params.supplierId,
    }
  })
}

// 查询供应商结算单列表
export function listSettleSheet(query) {
  return request({
    url: '/system/SettleSheet/list',
    method: 'get',
    params: query
  })
}

// 查询供应商结算单详细
export function getSettleSheet(id) {
  return request({
    url: '/system/SettleSheet/' + id,
    method: 'get'
  })
}

// 新增供应商结算单
export function addSettleSheet(data) {
  return request({
    url: '/system/SettleSheet',
    method: 'post',
    data: data
  })
}

// 修改供应商结算单
export function updateSettleSheet(data) {
  return request({
    url: '/system/SettleSheet',
    method: 'put',
    data: data
  })
}

// 删除供应商结算单
export function delSettleSheet(id) {
  return request({
    url: '/system/SettleSheet/' + id,
    method: 'delete'
  })
}
